package object;

public class MyInterger {
    public static void main(String[] args) {//测试null的Integer和0比较会不会报错
        Integer integer=null;
        System.out.println(integer==0);//print:Exception in thread "main" java.lang.NullPointerException
                                        //at object.MyInterger.main(MyInterger.java:6)
    }
}
